<?php
	/**
	 * 判断是否在制定时间内(每日)
	 * @param $start 00:00:00 或 2022-06-10 00:00:00
	 * @param $end	23:59:59 或 2022-06-10 23:59:59
	 * @return int
	 */
	function check_between_datetime($start, $end)
	{
		$date = date('Y-m-d H:i:s');
		$curTime = strtotime($date);//当前时分
		$assignTime1 = strtotime($start);//获得指定分钟时间戳，00:00
		$assignTime2 = strtotime($end);//获得指定分钟时间戳，01:00
		$result = 0;
		if ($curTime >= $assignTime1 && $curTime <= $assignTime2) {
			$result = 1;
		}
		return $result;
	}